﻿using System;
using System.Collections.Generic;
using System.Text;
using AutoMapper;

namespace AppSocketService
{
    public static  class MapperExtension
    {
        public static TDestionation As<TDestionation>(this object source)
        {
            if(source == null)
            {
                return default(TDestionation);
            }
            return AutoMapper.Mapper.Map<TDestionation>(source);
        }
    }
}
